package com.wjjm.spoonselling.service;

import com.wjjm.spoonselling.pojo.Commodity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface CommodityService {

    List<Commodity> selectAll();

    Commodity selectById(int commodityId);

    List<Commodity> selectByName(String name);

    boolean update(Commodity commodity);

    boolean deleteById(int commodityId);

    int insert(Commodity commodity);
}
